package com.jic.market.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.market.entity.Tag;
import com.jic.market.request.TagRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 活动标签表
 * @author : 
 * @email : 
 * @since : 2020-03-10 10:38:25
 * @version : v1.0.0
 */
@Mapper
public interface  TagMapper {

    long insert(Tag tag);

    long delete(Long id);

    long update(Tag tag);

    Tag queryByPrimaryKey(Long id);

    List<Tag> query(Tag tag);

    List<TagRequest> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("tag") TagRequest tag);

    long queryPageCount(@Param("tag")  TagRequest tag);

    long queryByTagNameCount(String tagName);
}